The SimpleMenu Component > FSimpleMenu.getEnabled()

 

FSimpleMenu.getEnabled()

Availability

Flash Player 6.

Usage

sm_instance.getEnabled()

Parameters

None.

Returns

Boolean; a value if the box is enabled and an undefined value if the SimpleMenu is disabled.

Description

Retrieves the enabled state of the SimpleMenu component.

Example

The following code prints enabled if the SimpleMenu is enabled, and prints disabled if the SimpleMenu is disabled:

enabled = sm_instance.getEnabled();
trace ("The Simple Menu is " + enabled ? "enabled" : "disabled");

See also

FSimpleMenu.setEnabled